'use strict';

module.exports=()=>async (ctx,next)=>{
    const startTime=Date.now();
    await next();

    const endTime=Date.now();
    console.log(`url:${ctx.path}; method:${ctx.method}; times:${endTime - startTime}ms`);
}